package com.yuandian.management.vo;

import com.yuandian.api.management.entity.ConfSegment;
import com.yuandian.api.management.validate.InsertFlag;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class ITRoadVo extends ConfSegment {

	/**
	 * 节点id
	 */
	@ApiModelProperty(value = "节点id", notes = "节点id", required = true)
	private String nodeId;

	/**
	 * 父节点id
	 */
	@ApiModelProperty(value = "父节点id", notes = "父节点id")
	private String parentNodeId;

	/**
	 * 坐标x
	 */
	@NotNull(message = "坐标x不能为空", groups = InsertFlag.class)
	@ApiModelProperty(value = "坐标x", notes = "坐标x")
	private Double locationX;

	/**
	 * 坐标y
	 */
	@NotNull(message = "坐标y不能为空", groups = InsertFlag.class)
	@ApiModelProperty(value = "坐标y", notes = "坐标y")
	private Double locationY;
}
